<template>
	<view class="money-bag">
		<view class="money-list">
			<view class="money-item-all">
				<text>零钱</text>
				<view class="money-item">
					<template v-if="userInfo.walletMoney==null">
						<text>￥0</text>
					</template>
					<template v-else>
						<text>￥{{userInfo.walletMoney}}</text>
					</template>
					<image src="https://z3.ax1x.com/2021/04/12/cBRNdg.png" mode=""></image>
				</view>
			</view>
			<view class="money-item-all">
				<text>积分</text>
				<view class="money-item">
					<text>{{userInfo.userScore}}分</text>
					<image src="https://z3.ax1x.com/2021/04/12/cBRNdg.png" mode=""></image>
				</view>
			</view>
			<view class="money-item-all">
				<text>账单</text>
				<view class="money-item">
					<navigator url="../reckoning/reckoning" hover-class="none">
						<image src="https://z3.ax1x.com/2021/04/12/cBRNdg.png" mode=""></image>
					</navigator>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {createNamespacedHelpers} from "vuex"
	let {mapState}=createNamespacedHelpers("mine")
	export default {
		data() {
			return {
				
			};
		},
		onLoad(){
			// this.getMoneyAllInfo()
		},
		methods:{
			// ...mapActions(["getMoneyAllInfo"])
			// getMoney(){
			// 	let data =await 
			// }
		},
		computed:{
			...mapState(["userInfo"])
		}
	}
</script>

<style lang="scss" scoped>
	.money-bag{
		width: 100vw;
		height: 100vh;
		background-color: #f5f5f5;
		.money-list{
			width: 100%;
			height: 500rpx;
			.money-item-all{
				width: 100%;
				height: 100rpx;
				background-color: white;
				display: flex;
				justify-content: space-between;
				align-items: center;
				margin-bottom: 20rpx;
				line-height: 100rpx;
				>text{
					margin-left: 20rpx;
				}
				.money-item{
					image{
						width: 18rpx;
						height: 24rpx;
						vertical-align: middle;
						margin-left: 20rpx;
						margin-right: 20rpx;
					}
				}
				
			}
		}
	}
</style>
